package pharao.client.views.index;

import hmvc4gwt.client.event.IHmvcEvent;
import hmvc4gwt.framework.client.controller.GuiController;
import hmvc4gwt.framework.client.events.AddViewEvent;
import pharao.client.views.index.events.ShowIndexViewEvent;

public class IndexController extends GuiController {

	public void initImpl() {
		register(ShowIndexViewEvent.class, this);
	}

	public void handleEventImpl(IHmvcEvent event) {
		if (event instanceof ShowIndexViewEvent) {
			fireEvent(new AddViewEvent(getView()), true, false, false);
		}
	}

	public Class getClassOfObject() {
		return IndexController.class;
	}

}
